-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Jest 26 blog post #9950
Add Jest 26 blog post #9950
Conversation
Thanks for getting this started! I'll add a paragraph about new fake timers (when I land it) and one for native ESM support |
Codecov Report
@@ Coverage Diff @@
## master #9950 +/- ##
==========================================
- Coverage 63.92% 63.90% -0.02%
==========================================
Files 293 293
Lines 12489 12489
Branches 3080 3080
==========================================
- Hits 7983 7981 -2
- Misses 3862 3863 +1
- Partials 644 645 +1
Continue to review full report at Codecov.
|
website/blog/2020-05-06-jest-26.md
Outdated
* `[jest-config, jest-resolve]` Remove support for `browser` field ([#9943](https://github.com/facebook/jest/pull/9943)) | ||
* TypeScript definitions requires a minimum of TypeScript v3.8 ([#9823](https://github.com/facebook/jest/pull/9823)) | ||
|
||
With the above changes Jest 26 is now 4 MiB smaller than Jest 25.5.4 (53 → 49 MiB). Please keep in mind that many dependencies like Babel are likely already part of your project. Jest's own size was reduced from 4.3 MiB to 3.1 MiB. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added the sizes comparing 26 alpha and 25.5.4.
website/blog/2020-05-06-jest-26.md
Outdated
|
||
With the above changes Jest 26 is now 4 MiB smaller than Jest 25.5.4 (53 → 49 MiB). Please keep in mind that many dependencies like Babel are likely already part of your project. Jest's own size was reduced from 4.3 MiB to 3.1 MiB. | ||
|
||
While this is a good start, it isn’t enough to make Jest meaningfully leaner. We are planning on gradually reducing Jest's size by about 70%. Most of the changes to reduce Jest’s default setup will be small breaking changes and we want to bring the community with us as much as possible. Therefore we will make the following changes in Jest 27 and Jest 28 using a [“Tick-Tock" release process](https://en.wikipedia.org/wiki/Tick%E2%80%93tock_model): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think 70% is reasonable if we remove Babel, Jasmine and JSDOM from the default install. Removing all of them likely has a bigger effect than removing them one by one as some transitive deps are probably shared.
a668c95
to
3551eb8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll come back with paragraphs for ESM and new fake timers later
website/blog/2020-05-06-jest-26.md
Outdated
|
||
* Dropped support for Node 8 ([#9423](https://github.com/facebook/jest/pull/9423)) | ||
* `[jest-environment-jsdom]` Upgrade `jsdom` to v16 ([#9606](https://github.com/facebook/jest/pull/9606)) | ||
* `[jest-runtime]` Remove long-deprecated `require.requireActual` and `require.requireMock` methods ([#9854](https://github.com/facebook/jest/pull/9854)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should call out the lint rule that will autofix this for folks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
website/blog/2020-05-06-jest-26.md
Outdated
* `[jest-haste-map]` Removed `providesModuleNodeModules` ([#8535](https://github.com/facebook/jest/pull/8535)) | ||
* `[jest-circus]` Fail tests if a test takes a done callback and have return values ([#9129](https://github.com/facebook/jest/pull/9129)) | ||
* `[jest-circus]` Throw a proper error if a test / hooks is defined asynchronously ([#8096](https://github.com/facebook/jest/pull/8096)) | ||
* ***TODO*** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should add #9965
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Comments are a couple of suggestions; and was wondering about the 70%
Co-authored-by: Orta <orta.therox+github@gmail.com>
Co-authored-by: Orta <orta.therox+github@gmail.com>
Co-authored-by: Orta <orta.therox+github@gmail.com>
Co-authored-by: Simen Bekkhus <sbekkhus91@gmail.com>
Co-authored-by: Simen Bekkhus <sbekkhus91@gmail.com>
Co-authored-by: Tim Seckinger <seckinger.tim@gmail.com>
Co-authored-by: Tim Seckinger <seckinger.tim@gmail.com>
Co-authored-by: Tim Seckinger <seckinger.tim@gmail.com>
Co-authored-by: Tim Seckinger <seckinger.tim@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Co-authored-by: Simen Bekkhus <sbekkhus91@gmail.com>
Co-authored-by: Simen Bekkhus <sbekkhus91@gmail.com>
Co-authored-by: Simen Bekkhus <sbekkhus91@gmail.com>
Co-authored-by: Simen Bekkhus <sbekkhus91@gmail.com>
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Jest 26, yeah!